package com.seckill.domain;

import lombok.Data;

import java.util.Date;

/**
 * 秒杀活动实体类
 */
@Data
public class SeckillActivity {
    private Long id; // 活动ID
    private Long productId; // 关联商品ID
    private Date startTime; // 开始时间
    private Date endTime; // 结束时间
    private Integer totalStock; // 总库存
    private Integer availableStock; // 可用库存
    private Integer seckillLimit; // 限购数量
    private Integer bucketCount; // 库存分桶数量
    private Integer isHidden; // 是否隐藏库存
    private Date createTime; // 创建时间

    private Integer preheatStatus;

    // getter/setter
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public Long getProductId() { return productId; }
    public void setProductId(Long productId) { this.productId = productId; }
    public Date getStartTime() { return startTime; }
    public void setStartTime(Date startTime) { this.startTime = startTime; }
    public Date getEndTime() { return endTime; }
    public void setEndTime(Date endTime) { this.endTime = endTime; }
    public Integer getTotalStock() { return totalStock; }
    public void setTotalStock(Integer totalStock) { this.totalStock = totalStock; }
    public Integer getAvailableStock() { return availableStock; }
    public void setAvailableStock(Integer availableStock) { this.availableStock = availableStock; }
    public Integer getSeckillLimit() { return seckillLimit; }
    public void setSeckillLimit(Integer seckillLimit) { this.seckillLimit = seckillLimit; }
    public Integer getBucketCount() { return bucketCount; }
    public void setBucketCount(Integer bucketCount) { this.bucketCount = bucketCount; }
    public Integer getIsHidden() { return isHidden; }
    public void setIsHidden(Integer isHidden) { this.isHidden = isHidden; }
    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }
} 